package com.jdzy.student.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jdzy.model.common.vos.Result;
import com.jdzy.model.student.dtos.CompetitionDeleteDto;
import com.jdzy.model.student.dtos.CompetitionDto;
import com.jdzy.model.student.pojos.Competition;

public interface CompetitionService extends IService<Competition> {

    /**
     * 新增竞赛信息
     * @param competitionDto
     * @return
     */
    Result saveCompetition(CompetitionDto competitionDto);

    /**
     * 获取竞赛信息
     *
     * @param stuId
     * @param page
     * @param size
     * @param competitionDto
     * @return
     */
    Result getCompetitionInfo(String stuId,Integer page,Integer size,CompetitionDto competitionDto);

    /**
     * 删除竞赛信息
     * @param stuId
     * @param competitionDeleteDto
     * @return
     */
    Result deleteCompetition(String stuId, CompetitionDeleteDto competitionDeleteDto);

    /**
     * 修改竞赛信息表
     * @param competitionDto
     * @return
     */
    Result updateCompetition(CompetitionDto competitionDto);
}
